package com.hpe.wx.performance.mongo.statusrecord.domain;

import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.data.mongodb.core.mapping.Document;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hpe.wx.system.domain.BasicEntity4Mongo;

@Document
public class StatusRecord extends BasicEntity4Mongo { 
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String jmxId;
	
	//@Temporal(TemporalType.TIMESTAMP)
	//@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
	private Date generateTime;
	private Long generateTimestamp;
	private Double cpuUsage;
	private Long memTotal;
	private Long memUsed;
	private Long heapTotal;
	private Long heapUsed;
	
	private Long discTotal;
	private Long discUsed;
	
	//private more attributes for the operating system 
	
	public String getJmxId() {
		return jmxId;
	}
	public void setJmxId(String jmxId) {
		this.jmxId = jmxId;
	}
	 
	public Date getGenerateTime() {
		return generateTime;
	}
	public void setGenerateTime(Date generateTime) {
		this.generateTime = generateTime;
	}
	public Long getGenerateTimestamp() {
		return generateTimestamp;
	}
	public void setGenerateTimestamp(Long generateTimestamp) {
		this.generateTimestamp = generateTimestamp;
	}
	public Double getCpuUsage() {
		return cpuUsage;
	}
	public void setCpuUsage(Double cpuUsage) {
		this.cpuUsage = cpuUsage;
	}
	public Long getMemTotal() {
		return memTotal;
	}
	public void setMemTotal(Long memTotal) {
		this.memTotal = memTotal;
	}
	public Long getMemUsed() {
		return memUsed;
	}
	public void setMemUsed(Long memUsed) {
		this.memUsed = memUsed;
	}
	public Long getHeapTotal() {
		return heapTotal;
	}
	public void setHeapTotal(Long heapTotal) {
		this.heapTotal = heapTotal;
	}
	public Long getHeapUsed() {
		return heapUsed;
	}
	public void setHeapUsed(Long heapUsed) {
		this.heapUsed = heapUsed;
	}
	public Long getDiscTotal() {
		return discTotal;
	}
	public void setDiscTotal(Long discTotal) {
		this.discTotal = discTotal;
	}
	public Long getDiscUsed() {
		return discUsed;
	}
	public void setDiscUsed(Long discUsed) {
		this.discUsed = discUsed;
	}
	
	

 
}
